package com.ditri.distrident.commonservice.controller;

import com.ditri.distrident.common.entity.UserUrlRoute;
import com.ditri.distrident.commonservice.service.UserUrlRouteService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (UserUrlRoute)表控制层
 *
 * @author makejava
 * @since 2020-08-01 11:46:39
 */
@RestController
@RequestMapping("userUrlRoute")
public class UserUrlRouteController {
    /**
     * 服务对象
     */
    @Resource
    private UserUrlRouteService userUrlRouteService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UserUrlRoute selectOne(Long id) {
        return this.userUrlRouteService.queryById(id);
    }

}